package com.zuser.project.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单分账表
 * 
 * @author zuser
 * @email 2076033693@gmail.com
 * @date 2025-04-01 15:45:34
 */
@Data
@TableName("order_profitsharing")
public class OrderProfitsharingEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 订单ID
	 */
	private Long orderId;
	/**
	 * 规则ID
	 */
	private Long ruleId;
	/**
	 * 订单金额
	 */
	private BigDecimal orderAmount;
	/**
	 * 微信支付平台费率
	 */
	private BigDecimal paymentRate;
	/**
	 * 微信支付平台费用
	 */
	private BigDecimal paymentFee;
	/**
	 * 代驾司机代缴个税税率
	 */
	private BigDecimal driverTaxRate;
	/**
	 * 代驾司机税率支出费用
	 */
	private BigDecimal driverTaxFee;
	/**
	 * 平台分账收入
	 */
	private BigDecimal platformIncome;
	/**
	 * 司机分账收入
	 */
	private BigDecimal driverIncome;
	/**
	 * 分账状态，1未分账，2已分账
	 */
	private Integer status;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	/**
	 * 
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;
	/**
	 * 
	 */
	private Integer isDeleted;

}
